<ion-view >

<header  class="user-defined-header user-header-style2 bar" >
		<button class="button button-clear icon ion-ios-arrow-left" ng-click="orderConfirm_back()"></button>
		<h1 class="title">确认订单</h1>
</header>


<ion-content class="has-header has-footer bk-gray" data-ng-init="orderInit()">

	<div class="list order-user-panel">
	  <a class="item item-icon-right" ng-click="goToChooseAddress()">
	    <div class="order-userInfo">
	    	<div class="padding-TB-5 font-color-lightBlack order-userInfo-contact">
	    		<i class="ion-ios-person-outline"></i><span>{{orderInfo.userInfo.realname}}</span>
	    		<i class="ion-iphone"></i><span>{{orderInfo.userInfo.mobile}}</span>
	    	</div>
	    	<div class="font-color-gray font-size-normal">配送地址：{{orderInfo.userInfo.address}}</div>
	    </div>

	    <i class="icon ion-ios-arrow-right font-color-lightBlack"></i>
	  </a>
	</div>

	<div class="margin-top-10 order-products-panel">
		<div class="order-products-item" ng-repeat="product in orderInfo.products">
			<div class="order-item-shop font-color-lightBlack">
				<img src="{{product.shop_logo}}"/>
				<span class="padding-LR-5">{{product.shop_name}}</span>
			</div>
			<div class="order-item-product font-color-lightBlack margin-top-10">
				<img src="img/slide-img10.jpg"/>
				<div class="order-product-info">
					<div class="font-color-lightBlack">{{product.name}}</div>
					<div class="order-product-time">发货时间：卖家承诺20小时内发货</div>
					<div class="order-product-price">
						<span class="font-color-xg">¥{{product.sale_price}}</span>
						<span class="font-color-lightBlack float-right">x{{product.count}}</span>
					</div>
				</div>
			</div>
		</div>
	</div>

	<div class="user-defined-list3 margin-top-10">

		  <a class="item item-icon-right icon-size-md" ng-show="isNotFromCart" ng-repeat="product in orderInfo.products">
		    	<span class="font-color-lightBlack">购买数量</span>
		    	<count-input ng-model="product.count" class="float-right"></count-input>
		  </a>

		  <a class="item item-icon-right icon-size-md">
		    	<span class="font-color-lightBlack">配送方式</span>
		    	<span class="item-note font-color-lightBlack">快递  免费</span>
		    	<i class="icon ion-ios-arrow-right font-color-lightBlack"></i>
		  </a>

		  <a class="item item-icon-right icon-size-md">
		    	<span class="font-color-lightBlack">运费险</span>
		    	<span class="item-note font-color-lightBlack">卖家已为您的运费投保，最高赔付100元</span>
		    	<i class="icon ion-ios-arrow-right font-color-lightBlack"></i>
		  </a>

		  <a class="item item-icon-right item-icon-left icon-size-md">
		  		<i class="icon">
		    		<span class="font-color-lightBlack font-size-lg">买家留言</span>
		    	</i>
		    	<input type="text" placeholder="选填，可以写您与卖家达成一致的要求" style="width: 80%;" ng-model='address'>
		  </a>
	</div>
	<div class="bk-white order-conut-panel">
		<span class="font-color-lightBlack font-size-lg float-right">共{{orderInfo.products.length}}件商品          合计：<span class="font-color-xg font-size-lg">¥{{orderInfo.count_price}}</span></span>
	</div>

</ion-content >

<div class="user-defined-footer">
	<div class="order-submit-count float-left font-color-lightBlack">
		合计：<span class="font-color-xg font-size-lg">¥{{orderInfo.count_price}}</span>
	</div>
	<div class="buy-bt order-submit float-right" ng-click="submit_order()">
		提交订单
	</div>
</div>

<script id="my-modal.html" type="text/ng-template">
  <div class="modal" style="background: rgba(0,0,0,0)">
  		<div class="modal-bg" style="width:100%;height:35%;position:absolute;background: rgba(0,0,0,.6)" ng-click="modal.hide()"></div>
  		<div class="modal-content bk-white" style="width:100%;height:65%;bottom:0;position:absolute;">
			<header  class="bar user-defined-header user-header-style2" >
					<a class="button button-clear icon ion-ios-close-empty" ng-click="modal.hide()" ></a>
						<h1 class="title font-color-gray">付款详情</h1>
			</header>
			<div class="user-defined-list3 has-header" style="border-bottom: 0">

				  <a class="item item-icon-right icon-size-md">
				    	<span class="font-color-gray">付款给</span>
				    	<span class="item-note font-color-gray">万茶邦茶城</span>
				    	<i class="icon ion-ios-arrow-rights font-color-lightBlack"></i>
				  </a>

				  <a class="item item-icon-right icon-size-md" ng-click="pay_type()">
				    	<span class="font-color-gray">付款方式</span>
				    	<span class="item-note font-color-gray">{{pay_info.type == 1?'支付宝':'微信'}}</span>
				    	<i class="icon ion-ios-arrow-right font-color-gray"></i>
				  </a>

				  <a class="item item-icon-right item-icon-left icon-size-md">
				  		<i class="icon">
				    		<span class="font-color-lightBlack font-size-lg">需付款</span>
				    	</i>
				    	<span class="item-note font-color-xg font-size-lg">{{orderInfo.count_price}}元</span>
				  </a>
			</div>

			<div class="item-input-inset" style="position:absolute;bottom: 15px;width: 100%;">
				<button class="button button-full  button-positive" ng-click="createOrder()">
				  确认付款
				</button>
			</div>
  		</div>
  </div>
</script>

</ion-view>
